<form id="pagerForm" method="post" action="__URL__/index">
	<input type="hidden" name="pageNum" value="{$currentPage}" />
	<input type="hidden" name="numPerPage" value="{$numPerPage}" />
 	<!-- <input type="hidden" name="orderField" value="${param.orderField}" /> -->
</form>
<script type="text/javascript">
function reload20() {
    navTab.reload("__URL__/index", {});
}
function userdbltable(target,rel){
    if( target == 'sid_user'){
    $.pdialog.open("__URL__/edit/id/"+rel+"/sid_user="+rel,"pdialogid", "修改用户", { max:false, mask:true, width: 800, height: 500});
    } 
  }
</script>
<div class="page">
	<div class="pageHeader">
		<form onsubmit="return navTabSearch(this);" action="__URL__/index" method="post">
		<div class="searchBar">
			<ul class="searchContent">
				<li>
					<label>用户名：</label>
					<input type="text" name="username1" value="{$username1}"/>
				</li>
			</ul>
			<div class="subBar">
				<ul>
					<li><div class="buttonActive"><div class="buttonContent"><button type="submit">查询</button></div></div></li>
				</ul>
			</div>
		</div>
		</form>
	</div>
	
	<div class="pageContent">
		<div class="panelBar">
			<ul class="toolBar">
				<li><a class="add" href="__URL__/add" target="dialog" mask="true" rel="add" width="800" height="550"><span>新增</span></a></li>
				<!-- <li><a class="delete" href="__URL__/delete/userid/{sid_user}/navTabId/User" target="ajaxTodo" title="你确定要删除吗？" warn="请选择用户"><span>删除</span></a></li>
				 -->
				 <li><a class="delete" href="__APP__/User/remove/navTabId/__MODULE__" target="selectedTodo"  rel="ids"  postType="string" title="确定要删除吗?"><span>删除</span></a></li>
							<li><a class="edit" href="__URL__/edit/id/{sid_user}" target="dialog" title="修改" width="800" height="500" mask="true"><span>修改</span></a></li>
				<li class="line">line</li>
				<li><a class="icon" href="__URL__/password/id/{sid_user}" target="dialog" mask="true" warn="请选择用户" width="400" height="200"><span>修改密码</span></a></li>
                <li><a class="icon" href="#" onclick="reload20()"><span>刷新</span></a></li>
			</ul>
		</div>


<table class="table" width="100%" layoutH="136" >
		<thead>
			<tr>
				<th align="center" width="20"><input type="checkbox" group="ids" class="checkboxCtrl"></th>
				<th width="60" align="center" >用户名</th>
				<th width="60" align="center" >姓名</th>
				<th width="60" align="center" >登陆IP</th>
				<th width="60" align="center" >登陆日期</th>
				<th width="60" align="center" >登陆次数</th>
			    <th width="100" align="center" orderField="status" <if condition="$_REQUEST._order eq 'status'">class="{$_REQUEST._sort}"</if>>状态</th>
				<th width="60" align="center">操作</th>
		 	</tr>
		</thead>
		<tbody>
	 		<volist id="vo" name="list">
				<tr target="sid_user" rel="{$vo.id}" ondblclick="userdbltable('sid_user',{$vo.id})">
				    <td><input name="ids" value="{$vo.id}" type="checkbox"></td>
					<td><a href="__URL__/edit/id/{$vo['id']}/" target="dialog" rel="__MODULE__" mask="true" title="修改" width="800" height="500">{$vo['username']}</td>
					<td>{$vo['fullname']}</td>
					<td>{$vo['lastloginip']}</td>
					<td>{$vo['lastlogintime']}</td>
					<td>{$vo['logincount']}</td>
					<td>{$vo['status']|getStatus}</td>
					<td>{$vo['status']|showStatus=$vo['id']} | <a class="delete" href="__URL__/foreverdelete/ids/{$vo['id']}/navTabId/__MODULE__" target="ajaxTodo" calback="navTabAjaxMenu" title="你确定要删除吗？"><span>删除</span></a> | <a href="__URL__/edit/id/{$vo['id']}" mask="true" target="dialog" width="800" height="500">编辑</a></td>
				</tr>
			</volist>
		</tbody>
	</table>

	<div class="panelBar">
		<div class="pages">
			<span>每页</span>
			<select class="combox" name="numPerPage" onchange="navTabPageBreak({numPerPage:this.value})">
				<eq name="numPerPage" value="24"><option value="24" selected>24</option><else/><option value="24">24</option></eq>
				<eq name="numPerPage" value="50"><option value="50" selected>50</option><else/><option value="50">50</option></eq>
				<eq name="numPerPage" value="100"><option value="100" selected>100</option><else/><option value="100">100</option></eq>
				<eq name="numPerPage" value="200"><option value="200" selected>200</option><else/><option value="200">200</option></eq>
			</select>
			<span>条，共{$totalCount}条</span>
		</div>
		<div class="pagination" targetType="navTab" totalCount="{$totalCount}" numPerPage="{$numPerPage}" pageNumShown="10" currentPage="{$currentPage}">
		</div>
	</div>
</div>
</div>